<template>
  <div class="container" style="margin-top: 80px;">
    <div class="header-image">
        <img src="@/assets/9.jpg" style="width: 100%;height: 100%; position: absolute;">
        <div class="avatar">
            <img src="@/assets/5.jpg" style="width: 100%;height: 100%; border-radius: 50%;">
        </div>
        <div class="title">
            <span class="username">Admin</span>
        </div>

        <div class="titlelist">
            <ul>
                <li><a href="/layout/personal/article">文章</a></li>
                <!-- <li><a href="/layout/personal/personinfo">个人信息</a></li> -->
                <li><a href="#">收藏</a></li>
                <li><a href="#">评论</a></li>
                <li><a href="#">点赞</a></li>
                <li><a href="#">关注</a></li>
            </ul>
        </div>

    </div>

    <div v-if="true">
        <router-view></router-view>
    </div>

    <div v-else>
        <div>
            加载中
        </div>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
html,body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container{
    /* margin-top: 40px; */
    height: 100%;
    width: 100%;
    /* background-color: aquamarine; */
}
.container .header-image{
    position: relative;
    height: 380px;
    width: 100%;
}
.header-image .avatar{
    position: absolute;
    height: 110px;
    width: 110px;
    padding: 5px;
    background-color: #fff;
    border-radius: 50%;
    left: 50%;
    top:10%;
    transform: translateX(-50%);
}
.header-image .title{
    position: absolute;
    height: 140px;
    width: 40%;
    left: 50%;
    top:45%;
    transform: translateX(-50%);
   .username{
    display: block;
    font-size: 30px;
    height: 30px;
    text-align: center;
    color: #fff;
   }
}
.header-image .titlelist{
    position: absolute;
    bottom: 5%;
    left: 10%;
    ul{
        display: flex;
        width: 100%;
        li{
            width: 140px;
           a{
            color: #fff;
           }
           a:hover{
            color: chartreuse;
           } 
        }
    }
} 
</style>